package offer;

public class Singleton3 {
    private String name;
    private int age;

    public static final Singleton3 INSTANCE;

    static {
        INSTANCE = new Singleton3("qxf", 27);
    }

    private Singleton3(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static Singleton3 getINSTANCE() {
        return INSTANCE;
    }
}
